﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.mysql
{
	// Token: 0x02000158 RID: 344
	public class TMySQLOpenCursor : TCustomMySQLStmt
	{
		// Token: 0x06000BA4 RID: 2980 RVA: 0x0030667F File Offset: 0x0030487F
		public TMySQLOpenCursor(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstmysqlopencursor;
		}

		// Token: 0x06000BA5 RID: 2981 RVA: 0x00306693 File Offset: 0x00304893
		internal override void buildsql()
		{
		}

		// Token: 0x06000BA6 RID: 2982 RVA: 0x00306695 File Offset: 0x00304895
		internal override void clear()
		{
		}

		// Token: 0x06000BA7 RID: 2983 RVA: 0x00306697 File Offset: 0x00304897
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06000BA8 RID: 2984 RVA: 0x0030669E File Offset: 0x0030489E
		internal override void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x17000222 RID: 546
		// (get) Token: 0x06000BA9 RID: 2985 RVA: 0x003066A0 File Offset: 0x003048A0
		// (set) Token: 0x06000BAA RID: 2986 RVA: 0x003066A8 File Offset: 0x003048A8
		public virtual TObjectName CursorName
		{
			get
			{
				return this.cursorName;
			}
			set
			{
				this.cursorName = value;
			}
		}

		// Token: 0x06000BAB RID: 2987 RVA: 0x003066B4 File Offset: 0x003048B4
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TOpenSqlNode topenSqlNode = (TOpenSqlNode)this.rootNode;
			this.cursorName = topenSqlNode.CursorName;
			return 0;
		}

		// Token: 0x06000BAC RID: 2988 RVA: 0x003066EC File Offset: 0x003048EC
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000BAD RID: 2989 RVA: 0x003066FC File Offset: 0x003048FC
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040012BC RID: 4796
		private TObjectName cursorName;
	}
}
